<!DOCTYPE html>
<html dir='ltr'>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>打印</title>
  <script src="https://pspk.longpean.com/public/jquery.min.js"></script>
</head>
<style>
  *{
    margin:0;padding:0;
  }
</style>
<body>
  <div class="ps-paper ps-biglabel2" style="position: relative;background:#ddd; width: 60mm; height: 15mm;">

    <div class="print-block active" style="position: absolute;left: 50mm;top: 3mm;font-size: 3mm;">
    文字打印块
  </div></div>
  <script>
    $.ajax({
      url: 'http://localhost:19527/print',
      type: 'POST',
      datatype: 'json',
      data: {
        content: $('body').get(0).outerHTML
      },
      success: data => {
        // console.log(data)
        // setTimeout(() => {
        //   dos(start + step)
        // }, 0)
      },
      error: (xhr, status, error) => {
        resolve(false, '打印服务未启动')
      }
    })
  </script>
</body>
</html>
